home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98c.txt / 000062_icon-group-sender _Sat Oct 17 09:19:03 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from ursus.CS.Arizona.EDU (ursus.CS.Arizona.EDU [192.12.69.63])
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) with SMTP id JAA11648
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Sat, 17 Oct 1998 09:19:03 -0700 (MST)
  5. Received: by ursus.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA08301; Sat, 17 Oct 1998 09:19:03 -0700
  7. Date: Fri, 16 Oct 1998 10:34:35 -0700
  8. From: Gregg Townsend <gmt@optima.CS.Arizona.EDU>
  9. Message-Id: <9810161734.AA12630@hawk.CS.Arizona.EDU>
  10. To: icon-group@optima.CS.Arizona.EDU, kaw@AbacusRT.com
  11. Subject: Re:  getch/Linux/Intel
  12. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  13. Status: RO
  14.  
  15.     From: Kurt Welgehausen <kaw@AbacusRT.com>
  16.     ... getch() fails on any character with the high bit set...
  17.  
  18. With the high bit set, the cast from char to int is returning a negative
  19. value, causing getch() to fail.  Here's a patch for src/runtime/rlocal.r:
  20.  
  21.  
  22. *** rlocal.old    Fri Oct 16 10:29:05 1998
  23. --- rlocal.r    Fri Oct 16 10:30:58 1998
  24. ***************
  25. *** 1457,1463 ****
  26.         }
  27.    
  28.      if (! status) return -1;
  29. !    else return (int)c;
  30.   }
  31.   
  32.   /*
  33. --- 1457,1463 ----
  34.         }
  35.    
  36.      if (! status) return -1;
  37. !    else return c & 0xFF;
  38.   }
  39.   
  40.   /*
  41.  
  42.    ---------------------------------------------------------------------------
  43.    Gregg Townsend              Gould-Simpson Building   gmt@cs.arizona.edu
  44.    Staff Scientist             1040 E. 4th St.          32 13 45N  110 57 16W
  45.    Dept. of Computer Science   PO Box 210077            tel: +1 520 621 4325
  46.    The University of Arizona   Tucson, AZ  85721-0077   fax: +1 520 621 4246
  47.